module.exports = {

    /**
     * @api {model} slime_brand_skus slime_brand_skus
     * @apiDescription 商品主档表
     * @apiGroup database
     * @apiParam {String} id 主键
     * @apiParam {String} ouid 组织单元ID
     * @apiParam {String} item_code 商品编码
     * @apiParam {String} barcode 商品条形码
     * @apiParam {String} name 商品名称
     * @apiParam {String} alias 商品别名
     * @apiParam {String} retail_unit 销售单位
     * @apiParam {String} spec 规格
     * @apiParam {String} brand 品牌
     * @apiParam {String} brand_id 品牌ID
     * @apiParam {String} category 品类
     * @apiParam {String} category_id 品类ID
     * @apiParam {Money} list_price 销售价
     * @apiParam {Money} market_price 划线价
     * @apiParam {Money} cost_price 成本价
     * @apiParam {Number} weight 重量
     * @apiParam {Number} stock 库存
     * @apiParam {String[]} tags 标签
     * @apiParam {String} external_id 同步商品ID
     * @apiParam {String} external_source 同步商品源
     * @apiParam {String} image_url 商品缩略图
     * @apiParam {String} memo 商品备注
     * @apiParam {Boolean} on_sale 销售标识
     * @apiParam {Boolean} is_removed 删除标识
     * @apiParam {Timestamp} create_date 记录时间
     * @apiParam {Timestamp} last_update 最后更新时间
     */
    "slime_brand_skus": {

        "id": @lab.types.id(),

        "ouid": @lab.types.es_keyword(),

        "item_code": @lab.types.es_analyzer_email(),

        "barcode": @lab.types.es_analyzer_email(),

        "name": @lab.types.string(),

        "alias": @lab.types.string(),

        "retail_unit": @lab.types.string(),

        "spec": @lab.types.string(),

        "brand": @lab.types.string(),

        "brand_id": @lab.types.es_keyword(), // 品牌ID

        "category": @lab.types.string(),

        "category_id": @lab.types.es_keyword(),

        "list_price": @lab.types.number(),

        "market_price": @lab.types.number(),

        "cost_price": @lab.types.number(),

        "weight": @lab.types.number(),

        "stock": @lab.types.number(),

        "tags": @lab.types.strings(),

        "create_date": @lab.types.date(),

        "last_update": @lab.types.date(),

        "is_removed": @lab.types.bool(),

        "external_id": @lab.types.es_keyword(),

        "external_source": @lab.types.es_keyword(),

        "memo": @lab.types.string(),

        "image_url": @lab.types.es_keyword_noindex(),

        "on_sale": @lab.types.bool(),

    }
}